﻿using System;
using EnvDTE;

namespace Agile.VSIX {
    /// <summary>
    /// A set of extension methods for <see cref="TextDocument" />.
    /// </summary>
    internal static class TextDocumentExtensions
    {
        internal static EditPoint GetEditPointAtCursor(this TextDocument textDocument)
        {
            var cursor = textDocument.CreateEditPoint();
            cursor.MoveToPoint(textDocument.Selection.ActivePoint);
            return cursor;
        }
    
    }
}